#include "csapp.h"
#include "stdio.h"
int main(void){	
	uint32_t tmp;
	scanf("%x",&tmp);
	char buf[1024];
	struct in_addr s;
	s.s_addr=ntohl(tmp);
	inet_ntop(AF_INET,(void *)&s,buf,sizeof buf);
	uint32_t pri=ntohl(s.s_addr);
	if(buf==NULL) printf("There is something wrong!\n");
	else printf("%s\n",buf);
	exit(0);
}
